package JSE_01.System;

import java.util.Arrays;

public class Demo01 {
    public static void main(String[] args){
        //demo01();
        demo02();
    }

    public static void demo01(){
        long startTime=System.currentTimeMillis();
        for (int i = 0; i < 999999; i++) {
            System.out.println(i);
        }

        long endTime=System.currentTimeMillis();
        System.out.println("程序用时："+(endTime-startTime)+"毫秒");
    }


    public static void demo02(){
        int[] src={1,2,3,4,5,6};
        int[] dest={7,8,9,10,11};
        System.arraycopy(src,0,dest,0,3);
        System.out.println(dest);
        System.out.println(Arrays.toString(dest));
    }

}
